﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>


<!DOCTYPE html>
<html>
<head>
    <title>合同书PDF模板--主页</title>
    <%@ include file="/common/meta.jsp"%>
    <style>
        .prpPreBigTitle {
            font-size: 11pt;
            font-weight: bold;
        }

        .TblList {
            BORDER: 2px solid #B9D8F6;
        }

        table {
            star: expression(this.align =     'center');
            width: 100%;
        }

        .TblList td {
            border-Bottom: 1px solid #cccccc;
            border-Right: 1px solid #cccccc;
            height: 22px
        }

        p {
            text-indent: 2em;
        }
    </style>
    <head>
        <script type="text/javascript">
            function compareAttachForView(ctrCode) {
                var cmpXPath = [{ctrXpath:'/data/contents/content[@seq=1]/file_code',prpXpath:'/data/content/file_code'}];
                cmpXPath = JSON.stringify(cmpXPath);
                var url = ctx + "/ctrapprove/compareAttachForView";
                post(url, {
                    'ctrCode' : ctrCode,
                    'cmpXPath' : cmpXPath
                });
            }

            $(function(){
                $("table.t_css").each(function(){
                    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
                    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
                });
            });
        </script>
    </head>

<body>
<!-- 如果是合同比对则显示比对附件按钮 -->
<c:set var="isCompare">${param.isCompare}</c:set>
<c:set var="isPrp">${param.isPrp}</c:set>
<c:if test="${isCompare == true && isPrp != true}">
    <div style='float: right;'>
        <a href="###" onclick="compareAttachForView('${param.ctrCodeEncrypt}')" style="color: #0066cc;">合同附件对比</a>
    </div>
</c:if>

<!-- 为了处理已经提交的历史数据 -->
<c:set var="xmlstr">${param.xmlstr}</c:set>
<x:parse var="xmlData" xml="${xmlstr}" scope="request"/>
<c:set var="statYear">
    <x:out select="$xmlData/data/proposal/stat_year" />
</c:set>
<table cellpadding="0" cellspacing="0" border="0" align="left">
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td align="right" width="70" nowrap="nowrap">合同编号：</td>
        <td align="left" width="300">
            &nbsp;
            <x:out escapeXml="false" select="$xmlData/data/contract/prj_no" />
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td align="right" width="70" nowrap="nowrap">项目类别：</td>
        <td align="left" width="300">
            &nbsp;
            <x:out escapeXml="false" select="$xmlData/data/proposal/sub_grant_name" />
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">&nbsp;</td>
    </tr>
</table>
<br>
<br>
<br>
<table align="center">
    <tr>
        <td width="98%" align="center" colspan="2">
            <font size="+2">
                <strong>科技创新平台重大科技项目</strong>
            </font>
        </td>
    </tr>
    <tr>
        <td width="98%" align="center" colspan="2">
            <font size="+2">
                <strong>项目任务书</strong>
            </font>
        </td>
    </tr>
    <tr>
        <td height="2" colspan="2" align="center">
            （${statYear}年度）
        </td>
    </tr>
    <tr></tr>
    <tr>
        <td width="100%" align="center" colspan="2">
            <font size="+1">
                <span class="color_red">${param.fzr }</span>
            </font>
        </td>
    </tr>
</table>
<br>
<br>
<br>
<!--首页-->
<table>
    <col width="20%"/>
    <tr>
        <td align="right">&nbsp;&nbsp;项目名称：</td>
        <td colspan="3">
            <x:out escapeXml="false" select="$xmlData/data/proposal/zh_title" />
        </td>
    </tr>
    <tr>
        <td align="right">&nbsp;&nbsp;项目承担单位：</td>
        <td colspan="3"><x:out select="$xmlData/data/organizations/organization/org_name" escapeXml="false" /></td>
    </tr>
    <tr>
        <td align="right">&nbsp;&nbsp;承担单位地址：</td>
        <td colspan="3">
            <x:out  escapeXml="false" select="$xmlData/data/organizations/organization/address" />
        </td>
    </tr>
    <tr>
        <td align="right">项目合作单位：</td>
        <td colspan="3">
            <c:set var="org_name"><span style="color: #FFFFFF; background-color: #FF0000"><x:out select="$xmlData/data/organizations/organization/org_name" escapeXml="false" /></span></c:set>
            <x:forEach select="$xmlData/data/lands/land" var="land">
                <c:set var="org_name1"><x:out select="$land/org_name" escapeXml="false"/></c:set>
                <c:set var="org_name2"><span style="color: #FFFFFF; background-color: #FF0000"><x:out select="$land/org_name" escapeXml="false"/></span></c:set>
                <c:if test="${org_name1 != org_name and org_name2 ne org_name}">${org_name1}</c:if>
            </x:forEach>

<%--            <c:set var="org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/></c:set>--%>
<%--            <c:set var="org_name1"><x:out select="$xmlData/data/lands/land[1]/org_name"  escapeXml="false"/></c:set>--%>
<%--            <c:set var="org_name2"><x:out select="$xmlData/data/lands/land[2]/org_name" escapeXml="false"/></c:set>--%>
<%--            <c:set var="org_name3"><x:out select="$xmlData/data/lands/land[3]/org_name" escapeXml="false"/></c:set>--%>
<%--            <c:set var="org_name4"><x:out select="$xmlData/data/lands/land[4]/org_name" escapeXml="false"/></c:set>--%>
<%--            <c:set var="org_name5"><x:out select="$xmlData/data/lands/land[5]/org_name" escapeXml="false"/></c:set>--%>

<%--            <c:if test="${org_name !=org_name1}">${org_name1}</c:if>--%>
<%--            <c:if test="${org_name !=org_name2}">${org_name2}</c:if>--%>
<%--            <c:if test="${org_name !=org_name3}">${org_name3}</c:if>--%>
<%--            <c:if test="${org_name !=org_name4}">${org_name4}</c:if>--%>
<%--            <c:if test="${org_name !=org_name5}">${org_name5}</c:if>--%>



        </td>
    </tr>
    <tr>
        <td align="right">项目负责人：</td>
        <td  width="20%">
            <x:out escapeXml="false" select="$xmlData/data/proposal/fzr_psnname"/>
        </td>
        <td align="right">负责人电话：</td>
        <td>
            <x:out  escapeXml="fasle"  select="$xmlData/data/proposal/fzr_mobile"/>
        </td>
    </tr>

    <tr>
        <td align="right">项目联系人姓名：</td>
        <td  width="20%">
            <x:out  escapeXml="false"  select="$xmlData/data/proposal/contact_psn_cname" />
        </td>
        <td align="right">联系人手机：</td>
        <td>
            <x:out  escapeXml="false"  select="$xmlData/data/proposal/contact_psn_mobile" />
        </td>
    </tr>
    <tr>
        <td align="right">归口管理部门：</td>
        <td colspan="3">
            <x:out escapeXml="false" select="$xmlData/data/proposal/recomend_org_name" />
        </td>
    </tr>
    <tr>
        <td align="right">项目起止日期：</td>
        <td colspan="3">
            <x:out escapeXml="false"  select="$xmlData/data/proposal/start_date" /> 至
            <x:out escapeXml="false"  select="$xmlData/data/proposal/end_date" />
        </td>
    </tr>

</table>
<br>
<br>
<table align="center">
    <tr>
        <td align="center">
            <strong>安徽省科学技术厅制</strong>
        </td>
    </tr>
    <tr>
        <td class="first_page_header" align="center" colspan="4" style="font-size: 21.343px; font-family: SimHei;">
            <c:set var="zwNum" value="零,一,二,三,四,五,六,七,八,九,十"/>
            <c:set var="zwNumArr" value="${fn:split(zwNum, ',')}" />
            <c:forEach items="${zwNumArr}" var="item" varStatus="index">
                <c:set var="statYear" value="${fn:replace(statYear,index.index,item)}" />
            </c:forEach>
            ${statYear}年
        </td>
    </tr>
</table>
<br>
        <!-- 单位基本情况 -->
        <jsp:include page="../org/prporg_baseinfo_enterprise_new_2024_0112.jsp">
            <jsp:param value="1、依托单位基本信息" name="title" />
            <jsp:param value="2、依托单位人员情况" name="title2" />
            <jsp:param value="5、知识产权情况" name="title6" />
            <jsp:param value="${xmlstr}" name="xmlstr" />
        </jsp:include>

        <!--项目基本情况  -->
            <jsp:include page="../info/prpInfoView_msgg_2024_0112.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr"/>
            </jsp:include>

        <!-- 任务书正文 -->
            <jsp:include page="../content/prpContentview_msgg_2024.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
                <jsp:param value="任务书正文" name="title" />
            </jsp:include>
        <!-- 牵头单位和合作单位分工 -->
            <jsp:include page="../content/prpContentview_msgg_2024_0112_1.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
                <jsp:param value="牵头单位和合作单位分工" name="title" />
            </jsp:include>
        <!--人员信息  -->
            <jsp:include page="../psn/prpzhpsn_msgg_2024_0112.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
            </jsp:include>

        <!--经费预算  -->
            <jsp:include page="../fund/prpfundedit_csjkjcx_gxly_2024_0112.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
            </jsp:include>
        <!--进度计划 -->
            <jsp:include page="../milestone/prpmilestoneedit_msgg_2019.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
            </jsp:include>
        <!--项目绩效 -->
            <jsp:include page="../performance/prpperformanceview_gxly_2024_0112.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
            </jsp:include>
        <!-- 承担单位及合作单位情况 -->
            <jsp:include page="../content/prpgcontent_msgg_cdjhzdw_2024.jsp">
                <jsp:param value="${xmlstr}" name="xmlstr" />
                <jsp:param value="承担单位及合作单位情况" name="title" />
            </jsp:include>

</body>
</html>